package com.koalac.ironman.net.pojo.response;

import org.json.JSONObject;

/**
 * 质检事项
 * @author cyleung  Jun 19, 2014
 */
public class Item extends BaseResponse{
	/**
	 * 质检事项的id
	 */
	private int id = 0;
	/**
	 * 质检事项名称
	 */
	private String name = "";
	
	/**
	 * 质检事项描述
	 */
	private String content = "";
	
	/**
	 * 设备状态 0:未检查，1:已经检查且正常，-1:已经检查，设备异常
	 */
	private int status= 0;
	
	public void init(JSONObject source){
		if(null!= source){
			name = source.optString("title");
			content = source.optString("content");
			id = source.optInt("item_id");
		}
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getContent() {
		return content;
	}
	/**
	 * 获取质检事项描述
	 * @param content
	 */
	public void setContent(String content) {
		this.content = content;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	
}
